package com.un.ebs.invoice.dto;

import com.un.ebs.invoice.enums.InvoiceTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/9/27 11:13
 */
@Data
public class InvoiceNoteBySaleOrderUpdateDto {

    private String id;

    @NotNull(message = "未指定发票类型。")
    private InvoiceTypeEnum invoiceType;

    @NotNull(message = "请指定合同。")
    private String contractCode;

    @NotNull(message = "未指定税率。")
    private Double taxRate;

    private String remark;

    @NotNull(message = "请指定发票原始单据。")
    private List<InvoiceNoteItemBySaleOrderDto> items;
}
